<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_common/title.jsp" %>
<%
    if (null == session.getAttribute("user")) {
        response.sendRedirect("login.jsp");
    }
%>
<body>
    <%@include  file="_common/header.jsp" %>
    <%@include  file="_common/col-left.jsp" %>

    <div class="col-main col-xs-12 col-sm-6 col-md-9">
        <!-- InstanceBeginEditable name="main" -->
        <div class="title-main">Admission Form</div>
        <div class="content-main">
            <html:form action="/addCousesUser.do" method="post">
                <div class="rowform">
                    <p style="color:red">
                        ${requestScope["existsCoursesUsers"]}
                    </p>
                    <p style="color:aqua">
                        ${requestScope["registerCoursesUsersOK"]}
                    </p>
                    <div style="float: left;width: 90%">The following is a list of course, invite you to choose the appropriate course and register with the school.</div>
                    <label class="lb">SoursesName: </label>
                    <html:select property="coursesId">                                                                          
                        <logic:iterate id="courses" name="Courses" property="courses">										
                            <option value="${courses.coursesId}">${courses.coursesName}</option>
                        </logic:iterate>
                    </html:select>
                    <input type="submit" name="btnSubmit" value="Register Couses" class="button" />
                </div>								
            </html:form>
        </div>
        <!-- InstanceEndEditable -->
    </div>
    <!-- ends col-main -->

    <%@include file="_common/footer.jsp" %>

</body>
</html>


